package hx.service.Impl;

import hx.mapper.EmployeeMapper;
import hx.pojo.Claim_voucher;
import hx.pojo.Employee;
import hx.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    //用于登录
    @Override
    public Employee Login_name(String name) {
        return employeeMapper.Login_name(name);
    }

    //用于员工查询自己的报销凭证
    @Override
    public List<Claim_voucher> voucher_selectSN(String SN) {
        return employeeMapper.voucher_selectSN(SN);
    }
}
